package yongxin.service.impl.workshop;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import yongxin.entity.workshop.WorkshopEntity;
import yongxin.service.workshop.WorkshopServiceI;
import org.jeecgframework.core.common.service.impl.CommonServiceImpl;
import org.jeecgframework.web.system.service.SystemService;

@Service("workshopService")
@Transactional
public class WorkshopServiceImpl extends CommonServiceImpl implements WorkshopServiceI {
	
	@Autowired
	private SystemService systemService;
	
	/*
	 * 
	 * 查找车间列表
	 * @see yongxin.service.workshop.WorkshopServiceI#findWorkshopList()
	 */
	public List<WorkshopEntity>  findWorkshopList(){
		
		String hql = " from WorkshopEntity ";
		
		List<WorkshopEntity> workShoplist = systemService.findByQueryString(hql); 
		
		return workShoplist;
		
	}
}